package cn.spike.basic.util;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 工具类：封装分页 + 高级查询的信息
 * @author:sea
 * @create:2023-01-09 12:38
 */
public class PageList<T> {

    private List<T>data =new ArrayList<>();

    private Integer totals = 0;

    public PageList() {}

    public PageList(List<T> data, Integer totals) {
        this.data = data;
        this.totals = totals;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public Integer getTotals() {
        return totals;
    }

    public void setTotals(Integer totals) {
        this.totals = totals;
    }
}
